﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="NewsManage.aspx.cs" Inherits="WebApplication1.NewsManage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Panel ID="Panel1" runat="server" Height="247px">
        <asp:GridView ID="gdvNews" runat="server" onrowcreated="gdvNews_RowCreated" 
            onrowdeleting="gdvNews_RowDeleting" onrowediting="gdvNews_RowEditing">
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:Button ID="btnEditNews" Text="编辑" runat="server" CausesValidation="false"
                            CommandName="Edit" />
                        <asp:Button ID="btnDeleteNews" Text="删除" runat="server" CausesValidation="false"
                            CommandName="Delete" OnClientClick="return confirm('你确定要删除吗？')" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </asp:Panel>
    <p>
        <asp:Button ID="btnAdd" runat="server" Text="新增" onclick="btnAdd_Click" />
    </p>
</asp:Content>
